import { useCount } from '@lynn/react-hooks'
import React from 'react'

export default function UseCount() {
    const [count, increment, decrement, reset] = useCount(100)

    return (
        <>
            <div>计数：{count}</div>
            <button onClick={increment}>+</button>
            <button onClick={decrement}>-</button>
            <button onClick={reset}>重置</button>
        </>
    )
}
